<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
	<script type="text/javascript" src="../js/jquery.event.ue.js"></script>
 	<script src="../js/jquery.udraggable.js"></script>
</head>
<body>
<div style="width: 600px;height:600px; border:1px solid red; position: relative;">
	<img style="position: absolute; top: 50px;" id="a" src="../img/2.jpg" width="100px;">
</div>


<script type="text/javascript">
	
	$(function(){
		$('#a').udraggable({
		    containment: 'parent'
		});
	});


</script>
</body>
</html>